package com.mashibing.singleton;

/**
 * @author: Yuanzt
 * @Date: 2021/3/8
 */
public class Mgr02 {

    private static final Mgr02 INSTANCE;
    static{
        INSTANCE = new Mgr02();
    }
    private Mgr02(){}

    public static Mgr02 getInstance(){
        return INSTANCE;
    }

    public static void main(String[] args) {
        Mgr02 m1 = getInstance();
        Mgr02 m2 = getInstance();
        System.out.println(m1 == m1);
    }
}
